<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="renderer" content="webkit">
    <meta name="author" content="中文Lee 360811363@qq.com">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../../lib/layui-v2.6.3/css/layui.css" media="all">
    <link rel="stylesheet" href="../../../css/public.css" media="all">
    <!--
    * [LupMisNotAllowedSync]
    * 本代码为系统自动生成代码，请根据自己业务进行修改;
    * 生成时间 2022-02-15 18:29:17;
    * 版权所有 2020-2022 lizhongwen，并保留所有权利;
    * 说明: 这不是一个自由软件！您只能在不用于商业目的的前提下对程序代码进行修改和使用；不允许对程序代码以任何形式任何目的的再发布;
    * 作者: 中文Lee;
    * 作者主页: http://www.lizhongwen.com;
    * 邮箱: 360811363@qq.com;
    * QQ: 360811363;
    -->
</head>

<body>
    <div class="layuimini-container">
        <div class="layuimini-main">
            <div id="form-list">
                <script id='tpl-list' type="text/template">
                    <form class="layui-form" action="">
                        <input type="hidden" name="id" value="<%:=data.id%>">
                        <div class="layui-col-lg6">
                            <div class="layui-form-item">
                                <label class="layui-form-label"><i style="color: red"> * </i>数据表名：</label>
                                <div class="layui-input-block">
                                    <select name="table_name" lay-verify="required">
                                        <option value="">请选择数据表</option>
                                    </select>
                                </div>
                            </div>
                        </div>

                        <div class="layui-col-lg6">
                            <div class="layui-form-item">
                                <label class="layui-form-label"><i style="color: red"> * </i>字段名称：</label>
                                <div class="layui-input-block">
                                    <input type="hidden" name="old_field_name" value="<%:=data.field_name%>">
                                    <input type="text" name="field_name" lay-verify="required" value="<%:=data.field_name%>" oninput="this.value=this.value.replace(/[\u4e00-\u9fa5]/ig,'')" placeholder="字段名称" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                        </div>

                        <div class="layui-col-lg6">
                            <div class="layui-form-item">
                                <label class="layui-form-label"><i style="color: red"> * </i>字段说明(备注)：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="field_remarks" value="<%:=data.field_remarks%>" lay-verify="required" placeholder="字段说明" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                        </div>

                        <div class="layui-col-lg6">
                            <div class="layui-form-item">
                                <label class="layui-form-label" style="color:#009688"><i style="color: red"> * </i>字段数据类型：</label>
                                <div class="layui-input-block">
                                    <select name="field_type" lay-verify="required" lay-filter="field_type">
                                        <option value="varchar" <% if(data.field_type=="varchar"){%> selected <%}%>>varchar</option>
                                        <option value="char" <% if(data.field_type=="char"){%> selected <%}%>>char</option>
                                        <option value="int" <% if(data.field_type=="int"){%> selected <%}%>>int</option>
                                        <option value="bigint" <% if(data.field_type=="bigint"){%> selected <%}%>>bigint</option>
                                        <option value="tinyint" <% if(data.field_type=="tinyint"){%> selected <%}%>>tinyint</option>
                                        <option value="decimal" <% if(data.field_type=="decimal"){%> selected <%}%>>decimal</option>
                                        <option value="text" <% if(data.field_type=="text"){%> selected <%}%>>text</option>
                                        <option value="longtext" <% if(data.field_type=="longtext"){%> selected <%}%>>longtext</option>
                                        <option value="date" <% if(data.field_type=="date"){%> selected <%}%>>date</option>
                                        <option value="datetime" <% if(data.field_type=="datetime"){%> selected <%}%>>datetime</option>
                                        <option value="time" <% if(data.field_type=="time"){%> selected <%}%>>time</option>
                                    </select>
                                </div>
                            </div>
                        </div>

                        <div class="layui-col-lg6">
                            <div class="layui-form-item">
                                <label class="layui-form-label" style="color:#009688"><i style="color: red"> * </i>字段长度(field)：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="field_len" value="<%:=data.field_len%>" lay-verify="required" value="50" placeholder="请输入长度" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                        </div>

                        <div class="layui-col-lg6">
                            <div class="layui-form-item">
                                <label class="layui-form-label" style="color:#009688">字段默认值(field)：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="field_default_value" value="<%:=data.field_default_value%>" placeholder="请输入字段默认值" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-lg6">
                            <div class="layui-form-item">
                                <label class="layui-form-label"><i style="color: red"> * </i>输入类型：</label>
                                <div class="layui-input-block">
                                    <select name="input_type" lay-verify="required" lay-filter="input_type">
                                        <option value="">请输入类型</option>
                                        <option value="input" <% if(data.input_type=="input"){%> selected <%}%>>单行文本 [input]</option>
                                        <option value="textarea" <% if(data.input_type=="textarea"){%> selected <%}%>>多行文本[textarea]</option>
                                        <option value="textEditor" <% if(data.input_type=="textEditor"){%> selected <%}%>>富文本编辑器</option>
                                        <option value="select" <% if(data.input_type=="select"){%> selected <%}%>>下拉选择（原生option）[select] </option>
                                        <option value="xmSelectNoPage" <% if(data.input_type=="xmSelectNoPage"){%> selected <%}%>>下拉单选[xmSelectNoPage]  无分页</option>
                                        <option value="xmMultiSelectNoPage" <% if(data.input_type=="xmMultiSelectNoPage"){%> selected <%}%>>下拉多选[xmMultiSelectNoPage]  无分页</option>
                                        <option value="xmSelect" <% if(data.input_type=="xmSelect"){%> selected <%}%>>下拉单选[xmSelect]  有分页</option>
                                        <option value="xmMultiSelect" <% if(data.input_type=="xmMultiSelect"){%> selected <%}%>>下拉多选[xmMultiSelect]  有分页</option>
                                        <option value="radio" <% if(data.input_type=="radio"){%> selected <%}%>>单选[radio]</option>
                                        <option value="checkbox" <% if(data.input_type=="checkbox"){%> selected <%}%>>多选[checkbox]</option>
                                        <option value="singleFile" <% if(data.input_type=="singleFile"){%> selected <%}%>>单附件</option>
                                        <option value="multiFile" <% if(data.input_type=="multiFile"){%> selected <%}%>>多附件</option>
                                        <option value="singleFileRemarks" <% if(data.input_type=="singleFileRemarks"){%> selected <%}%>>单附件[带描述]</option>
                                        <option value="multiFileRemarks" <% if(data.input_type=="multiFileRemarks"){%> selected <%}%>>多附件[带描述]</option>
                                        <option value="sku" <% if(data.input_type=="sku"){%> selected <%}%>>sku #TODO</option>

                                    </select>
                                </div>
                            </div>
                        </div>

                        <div class="layui-col-lg6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">数据校验类型：</label>
                                <div class="layui-input-block">
                                    <select name="data_check_type" lay-verify="required" lay-search>
                                        <option value="none" <% if(data.data_check_type=="none"){%> selected <%}%>>无[string]</option>
                                        <option value="ymd" <% if(data.data_check_type=="ymd"){%> selected <%}%>>日期[yyyy-mm-dd]</option>
                                        <option value="ymdhis" <% if(data.data_check_type=="ymdhis"){%> selected <%}%>>日期时间[yyyy-mm-dd HH:ii:ss]</option>
                                        <option value="his" <% if(data.data_check_type=="his"){%> selected <%}%>>纯时间[HH:ii:ss]</option>
                                        <option value="time" <% if(data.data_check_type=="time"){%> selected <%}%>>时间戳[秒]</option>
                                        <option value="timeMs" <% if(data.data_check_type=="timeMs"){%> selected <%}%>>时间戳[毫秒]</option>
                                        <option value="tel" <% if(data.data_check_type=="tel"){%> selected <%}%>>手机号码[139xxxxxxxx]</option>
                                        <option value="email" <% if(data.data_check_type=="email"){%> selected <%}%>>邮箱[xx@xx.xx]</option>
                                        <option value="http" <% if(data.data_check_type=="http"){%> selected <%}%>>网址[http://或https://]</option>
                                        <option value="int" <% if(data.data_check_type=="int"){%> selected <%}%>>整数[0-9]</option>
                                        <option value="float" <% if(data.data_check_type=="float"){%> selected <%}%>>浮点[小数点]</option>
                                        <option value="money" <% if(data.data_check_type=="money"){%> selected <%}%>>金额[两位小数]</option>
                                        <option value="idCard" <% if(data.data_check_type=="idCard"){%> selected <%}%>>身份证[15位或18位身份证]</option>
                                        <option value="password" <% if(data.data_check_type=="password"){%> selected <%}%>>密码[md5加密]</option>
                                        <!-- <option value="encrypt" <% if(data.data_check_type=="encrypt"){%> selected <%}%>>数据加密</option> -->
                                    </select>
                                </div>
                            </div>
                        </div>

                        <div class="layui-col-lg6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">数据来源：</label>
                                <div class="layui-input-block">
                                    <select name="data_src_type" lay-verify="required" lay-filter="data_src_type">
                                        <option value="none" <% if(data.data_src_type=="none"){%> selected <%}%>>无</option>
                                        <option value="dict" <% if(data.data_src_type=="dict"){%> selected <%}%>>数据字典</option>
                                        <option value="db-table" <% if(data.data_src_type=="db-table"){%> selected <%}%>>(数据表) db-table</option>
                                        <option value="tree-parent" <% if(data.data_src_type=="tree-parent"){%> selected <%}%>>目录树</option>
                                    </select>
                                </div>
                            </div>
                        </div>


                        <div class="layui-col-lg6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">数据字典：</label>
                                <div class="layui-input-block">
                                    <select name="dict_code">
                                        <option value="">请选择字典</option>
 
                                    </select>
                                </div>
                            </div>
                        </div>


                        <div class="layui-col-lg12  layui-form-text">
                            <div class="layui-form-item">
                                <label class="layui-form-label">字段数据来源：<b onclick="formatJson($('textarea[name=custom_src]').val(),1)" style="color: red">【JSON校验】</b></label>
                                <div class="layui-input-block">
                                    <textarea name="custom_src" style="height: 300px;" placeholder='请输入字段数据来源' autocomplete="off" class="layui-textarea"><%:=data.custom_src%></textarea>
                                </div>
                            </div>
                        </div>




                        <div class="layui-col-lg6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">是否必填：</label>
                                <div class="layui-input-block">
                                    <select name="must" lay-verify="required" lay-search>            
                                        <option value="1" <% if(data.must==1){%> selected <%}%>>必填</option>
                                        <option value="-1" <% if(data.must==-1){%> selected <%}%>>选填</option>
                                    </select>
                                </div>
                            </div>
                        </div>


                        <div class="layui-col-lg6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">列宽：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="cols_width" value="<%:=data.cols_width%>" lay-verify="number" placeholder="请输入列宽 0代表自动分配" autocomplete="off" value="0" class="layui-input">
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-lg6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">列表双击编辑：</label>
                                <div class="layui-input-block">
                                    <select name="list_edit" lay-verify="required" lay-search>
                                        <option value="1" <% if(data.list_edit==1){%> selected <%}%>>可双击编辑</option>
                                        <option value="-1" <% if(data.list_edit==-1){%> selected <%}%>>不可双击编辑</option>
                                    </select>
                                </div>
                            </div>
                        </div>



                        <div class="layui-col-lg6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">列表显示：</label>
                                <div class="layui-input-block">
                                    <select name="list_show" lay-verify="required" lay-search>
                                        <option value="1" <% if(data.list_show==1){%> selected <%}%>>显示</option>
                                        <option value="-1" <% if(data.list_show==-1){%> selected <%}%>>隐藏</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-lg6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">检索条件：</label>
                                <div class="layui-input-block">
                                    <select name="search_condition" lay-verify="required" lay-search>
                                        <option value="none" <% if(data.search_condition=="none"){%> selected <%}%>>无[不检索]</option>
                                        <option value="equals" <% if(data.search_condition=="equals"){%> selected <%}%>>等于</option>
                                        <option value="like" <% if(data.search_condition=="like"){%> selected <%}%>>LIKE '%key%'</option>
                                        <option value="likeLeft" <% if(data.search_condition=="likeLeft"){%> selected <%}%>>LIKE '%key'</option>
                                        <option value="likeRight" <% if(data.search_condition=="likeRight"){%> selected <%}%>>LIKE 'key%'</option>
                                        <option value=">=" <% if(data.search_condition==">="){%> selected <%}%>> >= </option>
                                        <option value="<=" <% if(data.search_condition=="<="){%> selected <%}%>> <= </option>
                                        <option value="between" <% if(data.search_condition=="between"){%> selected <%}%>>区间</option>
                                        <option value="find_in_set" <% if(data.search_condition=="find_in_set"){%> selected <%}%>>find_in_set</option>
                                    </select>
                                </div>
                            </div>
                        </div>



                        <div class="layui-col-lg6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">是否允许替换路径</label>
                                <div class="layui-input-block">
                                    <select name="is_allow_replace" lay-verify="required" lay-search>
                                        <option value="1" <% if(data.is_allow_replace=='1'){%> selected <%}%>>允许</option>
                                        <option value="-1" <% if(data.is_allow_replace=='-1'){%> selected <%}%>>禁止</option>
                                    </select>
                                </div>
                            </div>
                        </div>

                        <div class="layui-col-lg12  layui-form-text">
                            <div class="layui-form-item">
                                <label class="layui-form-label">字段描述</label>
                                <div class="layui-input-block">
                                    <textarea name="remarks" style="height: 100px;" placeholder='请输入字段字段描述' autocomplete="off" class="layui-textarea"><%:=data.remarks%></textarea>
                                </div>
                            </div>
                        </div>

                        <div class="layui-col-lg6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">排序：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="sort" value="<%:=data.sort%>" lay-verify="required|number" placeholder="请输入排序" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button class="layui-btn" lay-submit="" lay-filter="form-submit">立即提交</button>
                            </div>
                        </div>
                    </form>
                </script>
            </div>
        </div>
    </div>

    <script src="../../../js/run.js"></script>
    <!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
    <script type="text/javascript">
        var webpath = "./script/edit.js?v=" + static_version;
        document.write('<scr' + 'ipt src="' + webpath + '"></scr' + 'ipt>');
    </script>
</body>

</html>